﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace 流量控制试验台
{
    public partial class 流量控制阀 : Form
    {
        public 流量控制阀()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void Form3_Load(object sender, EventArgs e)
        {

        }

        private void button5_Click(object sender, EventArgs e)
        {
            过程曲线 form = new 过程曲线(); form.Show();  
        }

        private void button4_Click(object sender, EventArgs e)
        {
            历史数据 form = new 历史数据(); form.Show();   
        }

        private void button6_Click(object sender, EventArgs e)
        {
            this.Hide(); 控制选择  form = new 控制选择(); form.Show();
        }

        private void rectangleShape1_Click(object sender, EventArgs e)
        {

        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }

        private void button1_Click_1(object sender, EventArgs e)
        {
            button3.BackColor = Color.Blue;
            button7.BackColor = Color.Blue;
            button2.Enabled = true;
            textBox1.Enabled = false;
            radioButton1.Enabled = false;
            radioButton2.Enabled = false;
            radioButton3.Enabled = false;
            radioButton4.Enabled = false;
            button1.Enabled = false;
            button6.Enabled = false;
            textBox3.Enabled = false;
            textBox4.Enabled = false;
            textBox5.Enabled = false;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            button3.BackColor = Color.Red;
            button7.BackColor = Color.Red;
            button4.Enabled = true;
            button5.Enabled = true;
            textBox1.Enabled = true;
            radioButton1.Enabled = true;
            radioButton2.Enabled = true;
            radioButton3.Enabled = true;
            radioButton4.Enabled = true;
            button1.Enabled = true;
            button6.Enabled = true;
            textBox3.Enabled = true;
            textBox4.Enabled = true;
            textBox5.Enabled = true;
        }
    }
}
